<div class="ui stackable grid">
<div class="three wide column" >

</div>

<div class="ten wide column">

  <form class="ui form" #groupForm="ngForm">
    <div class="field">
      <h3>{{proj?proj.name:""}}</h3>
    </div>
    <div class="field" [class.error]="!groupName.valid">
      <label>分组名称</label>
      <input placeholder="name" type="text" [(ngModel)]="group.name" #groupName="ngForm" ngControl="groupName" maxlength="100" required>
    </div>
    <div class="field" [class.error]="!groupDesc.valid">
      <label>分组描述</label>
      <textarea rows="3" [(ngModel)]="group.description" #groupDesc="ngForm" ngControl="groupDesc" maxlength="500"></textarea>
    </div>

    <div class="field">
      <a class="ui button green" (click)="submit()" >Submit</a>
      <a class="ui circular google plus icon button" *ngIf="group._id" (click)="delete()">
        <i class="trash icon"></i>
      </a>
    </div>
</form>

<div class="ui basic modal">
  <i class="close icon"></i>
  <div class="header">
    Archive Old Messages
  </div>
  <div class="image content">
    <div class="image">
      <i class="archive icon"></i>
    </div>
    <div class="description">
      <p>Your inbox is getting full, would you like us to enable automatic archiving of old messages?</p>
    </div>
  </div>
  <div class="actions">
    <div class="two fluid ui inverted buttons">
      <div class="ui red basic inverted button">
        <i class="remove icon"></i>
        No
      </div>
      <div class="ui green basic inverted button" (click)="confirmDelete()">
        <i class="checkmark icon"></i>
        Yes
      </div>
    </div>
  </div>
</div>
</div>
</div>
